package com.example.courseselectionsystemconsume.pojo;


/**
 * @description: TODO
 * @author: Tokyo_God
 * @date: 2020/12/25 21:27
 * Role of: 课程
 * @version: v1.0
 */
public class Course {

    public Course(){}

    public Course(Integer id, String name, Integer marks, Integer tution,
                  Integer semesterId, Integer teacherId,
                  Integer amount, String tutionDate) {
        this.id = id;
        this.name = name;
        this.marks = marks;
        this.tution = tution;
        this.semesterId = semesterId;
        this.teacherId = teacherId;
        this.amount = amount;
        this.tutionDate = tutionDate;
    }

    private Integer id;
    private String name;
    private Integer marks;//本课程所价值的分数
    private Integer tution;//1-7 表示每周几开课
    private Integer semesterId;//学期id
    private Integer teacherId;//教师名称id
    private Integer amount;//课程数量
    private String tutionDate;//开课时间

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getMarks() {
        return marks;
    }

    public void setMarks(Integer marks) {
        this.marks = marks;
    }

    public Integer getTution() {
        return tution;
    }

    public void setTution(Integer tution) {
        this.tution = tution;
    }

    public Integer getSemesterId() {
        return semesterId;
    }

    public void setSemesterId(Integer semesterId) {
        this.semesterId = semesterId;
    }

    public Integer getTeacherId() {
        return teacherId;
    }

    public void setTeacherId(Integer teacherId) {
        this.teacherId = teacherId;
    }

    public Integer getAmount() {
        return amount;
    }

    public void setAmount(Integer amount) {
        this.amount = amount;
    }

    public String getTutionDate() {
        return tutionDate;
    }

    public void setTutionDate(String tutionDate) {
        this.tutionDate = tutionDate;
    }

    @Override
    public String toString() {
        return "Course{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", marks=" + marks +
                ", tution=" + tution +
                ", semesterId=" + semesterId +
                ", teacherId=" + teacherId +
                ", amount=" + amount +
                ", tutionDate='" + tutionDate + '\'' +
                '}';
    }
}
